import React, { Component } from 'react';
import { Link } from "react-router-dom";

import "../../assets/layout.css"

import RouterItem from "./../../routers/index"

class layout extends Component {
    state = {}
    render() {
        console.log(this.props)
        return (
            <div className="container">
                <div className="left-box">
                    <ul>
                        <li><Link to="/report/one">one</Link></li>
                        <li><Link to="/report/two">two</Link></li>
                    </ul>
                </div>
                <div className="right-box">
                    <RouterItem routes={this.props.route.children} />
                </div>
            </div>
        );
    }
}

export default layout;